<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
    function page(n,s){
        $("#pageNo").val(n);
        $("#pageSize").val(s);
        $("#searchForm").submit();
        return false;
    }
</script>
<div class="content-wrap">
    <div class="wrapper" style="bottom: 50px;">
        <ul class="nav nav-tabs">
            <li class="active">
                <a href="#"   onclick="loadDiv('mainCenterDiv','${ctx}/nurse/newbornRec/apgarIndex')">新生儿apgar评分记录列表</a>
            </li>
            <li>
                <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/nurse/newbornRec/apgarform')">新生儿apgar评分记录添加</a>
            </li>
        </ul>
        <section class="panel panel-default">
            <div class="panel-body">
                <div class="table-responsive no-border">
                    <div class="datatable-top">
                        <div class="pull-left">
                            <form:form id="searchForm" modelAttribute="newbornRecApgar"  onsubmit="return loadDivForm('mainCenterDiv','searchForm','${ctx}/nurse/newbornRec/apgarIndex');" method="post" class="form-inline">
                                <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
                                <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
                                <label>新生儿ID ：</label><form:input path="newbornRec.patientId" htmlEscape="false" maxlength="50" class="form-control" />
                                &nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
                            </form:form>
                        </div>
                    </div>
                    <table id="contentTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>
                            <th>序号</th>
                            <th>体征项目</th>
                            <th>内容</th>
                            <th>分数</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                            <c:forEach items="${page.list}" var="newbornRecApgar">
                                <tr>
                                    <td>${newbornRecApgar.num}</td>
                                    <td>${newbornRecApgar.signItem}</td>
                                    <td>${newbornRecApgar.content}</td>
                                    <td>${newbornRecApgar.fraction}</td>
                                    <td>
                                        <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/nurse/newbornRec/apgarform?id=${newbornRecApgar.id}')" class="btn btn-success btn-xs">修改</a>
                                    </td>
                                </tr>
                            </c:forEach>
                        </tbody>
                    </table>
                    <div class="pagination">${page}</div>
                </div>
            </div>
        </section>
    </div>
</div>